<!--订阅榜-->
<template>
  <div class="subscribe_list">
    <h2 class="more">订阅榜<span>全部</span></h2>
    <div class="member_click_list">
      <ul>
        <li class="clearfix" :class="{notone: index!=0}" v-for="(item,index) in subscribeBook.list" :key="item.bookId">
          <em class="paimin">{{index+1}}</em>
          <a @click="goXq(item.bookId)" >
            <img @click="goXq(item.bookId)" v-if="index==0" class="fengmian" src="static/img/recommend2.jpg" alt="">
            <h3 v-if="index==0" class="bookname">{{item.bookName}}</h3>
            <span v-if="index!=0" class="bookname">传奇再现</span>
            <span v-if="index==0">{{item.author}}</span>
            <p v-if="index==0">{{item.introduction}}</p>
            <span class="sing">{{item.bookType}}</span>
          </a>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
  export default {
    props: ['subscribeBook'],
    data () {
      return {
        msg: '数据初始化'
      }
    },
    methods: {
      goXq (bookid) {
        this.$router.push( { name: 'bookinfo', params: { bookid: bookid }})
      }
    }    
  }
</script>
<style scoped>
  .subscribe_list{
    background: #fff;
    margin-top: 10px;
    padding-top: 16px;
    width: 320px;
    overflow: hidden;
  }
  .subscribe_list h2{
    margin: 0px 16px 10px;
    border-left: 6px solid #f60;
    text-indent: 8px;
    font-size: 18px;
    height: 16px;
    line-height: 16px;
    font-weight: normal;
    position: relative;
  }
  .subscribe_list h2 span{
    position: absolute;
    color: #999;
    font-size: 13.44px;
    right:15px;
    bottom: -4px;
  }
  .subscribe_list .member_click_list{
    margin: 0 14px;
  }
  .subscribe_list .member_click_list ul li{
    padding: 7px 0;
    border-bottom: 1px dotted #ECECEC;
  }
  .subscribe_list .member_click_list ul li:last-of-type{
    border-bottom: none;
  }
  .subscribe_list .member_click_list ul li .sing{
    border: 1px solid #ECECEC;
    color: #999;
    padding: 0 2px;
  }
  .subscribe_list .member_click_list ul li:nth-child(1) em.paimin{
    float: left;
    margin-right: 7px;
    margin-top:0px;
    display: inline-block;
    width:20px;
    height: 30px;
    background: url(../../../../static/img/i1.png) no-repeat top left;
    background-size: 100% 100%;
    text-align: center;
    line-height: 24px;
    color:#fff;
    font-size: 16px;
  }
  .subscribe_list .member_click_list ul li:nth-child(1) img.fengmian{
    width: 70px;
    border-right: 5px solid #DDD;
    border-bottom: 3px solid #CCC;
    box-shadow: 1px 2px 3px rgba(0,0,0,.3);
    float:left;
    margin-right: 14px;
  }
  .subscribe_list .member_click_list ul li:nth-child(1) em.click_num img{
    width: 12px;
  }
  .subscribe_list .member_click_list ul li:nth-child(1) a span,.member_click_list ul li a p{
    color:#666;
    font-size: 13px;
    line-height: 15px;
    margin:6px 0 ;
  }
  .subscribe_list .member_click_list ul li:nth-child(1) a h3{
    color:#333;
    font-weight: normal;
    line-height: 34px;
    font-size: 16px;
    margin-bottom: 3px;

  }
  .subscribe_list .member_click_list ul li.notone em.paimin{
    color: #FFF;
    display: inline-block;
    margin-right: 7px;
    margin-top: 8.5px;
    background: #B3B3B3;
    border-radius: 4px;
    text-align: center;
    width: 18px;
    height: 18px;
    line-height: 18px;
    float: left;
  }
  .subscribe_list .member_click_list ul li.notone .bookname{
    color: #333;
    font-size: 14px;
  }
  .subscribe_list .member_click_list ul li.notone a{
    display: block;
    height:35px;
    width: 90%;
    line-height: 35px;
    float: left;

  }
  .subscribe_list .member_click_list ul li:nth-child(2) em.paimin{
    background: #f60;
  }
  .subscribe_list .member_click_list ul li:nth-child(3) em.paimin{
    background: #4F98FF;;
  }
.more::after{
    content: '';
    display: block;
    height: 24px;
    width: 24px;
    position: absolute;
    background: url(/static/img/arr_right_gray.jpg) no-repeat right center;
    background-size: 8px 13px;
    top: 0px;
    right: -5px;
    z-index: 99;
}
</style>
